package com.reliable.api.param.user;

/**
 * @author yuyantao
 * ClassName: UserSaveParam
 * date: 2025/7/10 14:32
 */

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 用户新增参数
 */
@Data
@Accessors(chain = true)
public class UserSaveParam implements Serializable {



    /**
     * 用户账号
     */
    @NotBlank
    @Size(min = 1, max = 40)
    private String account;


    /**
     * 账号名称
     */
    @NotBlank
    @Size(min = 1, max = 40)
    private String userName;

    /**
     * 密码 (加密)
     */
    @NotBlank
    @Size(min = 9, max = 16)
    private String password;

    /**
     * 确认密码 (加密)
     */
    @NotBlank
    @Size(min = 9, max = 16)
    private String confirm_password;

    /**
     * 邀请码
     */
    @NotBlank
    private String invite_code;
}
